#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import socket

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect_ex(("127.0.0.1", 2011))

while True:
    inp = input(">>>>: ").strip()
    if not inp: continue
    client.send(inp.encode("utf-8"))
    data = client.recv(1024)
    print(data.decode("utf-8"))
